Clean some more env vars during tests
authorAlex Crichton <alex@alexcrichton.com>
Tue, 18 Apr 2017 00:55:59 +0000 (17:55 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 18 Apr 2017 00:55:59 +0000 (17:55 -0700)
Will be required to run tests as part of rust-lang/rust

tests/cargotest/lib.rs

index 1b5899b7f8c5910b275bcc3eacea17bc5cd0ac8c..a4410a85361fd6a39874e3fa2c7d65a2e770845b 100644 (file)
@@ -51,7 +51,9 @@ fn _process(t: &OsStr) -> cargo::util::ProcessBuilder {
      .env("HOME", support::paths::home())
      .env("CARGO_HOME", support::paths::home().join(".cargo"))
      .env("__CARGO_TEST_ROOT", support::paths::root())
+     .env_remove("__CARGO_DEFAULT_LIB_METADATA")
      .env_remove("RUSTC")
+     .env_remove("RUSTDOC")
      .env_remove("RUSTFLAGS")
      .env_remove("CARGO_INCREMENTAL")
      .env_remove("XDG_CONFIG_HOME")      // see #2345